<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/common.jsp"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
  <head>
   <title>角色分配</title>
   <%@ include file="/common/meta.jsp"%>   
   <link href="<c:url value='/styles/main.css'/>" type="text/css" rel="stylesheet">   
<link href="<c:url value='/widgets/ext/css/ext-all.css'/>" type="text/css" rel="stylesheet">
<script src="<c:url value='/widgets/ext/scripts/ext-base.js'/>" type="text/javascript"></script>
<script src="<c:url value='/widgets/ext/scripts/ext-all.js'/>" type="text/javascript"></script>
<script src="<c:url value='/widgets/ext/scripts/miframe.js'/>" type="text/javascript"></script>
<link href="<c:url value="/widgets/extremecomponents/extremecomponents.css"/>" type="text/css"  rel="stylesheet"/>
</head>
<script type="text/javascript">
 
  function editRole(id){
  	openPop("role.do?method=searchrole&id="+id,"角色列表",480,320);
  }
</script>
 <body bgcolor="#F2FEF4">
		<div id="detailheader">
			<img src="<%=request.getContextPath()%>/images/main/main_ban01Dot.png" />
			<div>角色分配</div>
		</div>
		<html:form action="operator.do?method=search" method="get">
			<div id="timecote">	
				<div id="timel"></div>			
				<div id="timem">
					<table cellspacing="5px">
						<tr>
							<td align="left">登陆ID:<html:text property="operatorPo.loginId" /></td>
							<td align="left">用户名称:<html:text property="operatorPo.opName" /></td>
							<td><html:submit styleClass="btn_Xp_Bg0" value="查询" /></td>			
						</tr>
					</table>
				</div>
				<div id="timer"></div>
			</div>
			<div style="text-align:right;padding:5px">
			</div>
			<div id="tbcontent">
				<ec:table items="resultList" var="rs" form="operatorForm"
					action="${pageContext.request.contextPath}/operator.do?method=search"
					title="角色分配" retrieveRowsCallback="limit"
					sortRowsCallback="limit" width="95%">
					<ec:row>
						<ec:column property="0" title="登陆ID">
							<c:out value="${rs.loginId}" />
						</ec:column>
						<ec:column property="1" title="操作员名称">
							<c:out value="${rs.opName}" />
						</ec:column>
						<ec:column property="2" title="员工编号">
							<c:out value="${rs.opCode}" />
						</ec:column>
						<ec:column property="3" title=" ">
							<c:if test="${rs.status==0 || rs.status==9}">
							<a href="#" onclick="editRole(<c:out value='${rs.opId}'/>);return false">分配角色</a>
							</c:if>
						</ec:column>
					</ec:row>
				</ec:table>
			</div>
		</html:form>		
	</body>
</html>
